package com.yu.demo.dao.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "baisc_user")
public class User implements Serializable {

    @Id
    private Long id;

    private String code;

    private String name;

    private String password;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
}